package com.xfcy.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xfcy.blog.entity.PhotoAlbum;
import com.xfcy.blog.vo.PhotoAlbumsVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 相册(PhotoAlbum)表数据库访问层
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:06
 */
@Repository
public interface PhotoAlbumMapper extends BaseMapper<PhotoAlbum> {

    /**
     * 后台分页查询
     * @param objectPage
     * @param name
     * @return
     */
    Page<PhotoAlbumsVO> listAlbum(@Param("page") Page<Object> objectPage, @Param("name") String name);

    /**
     * 相册详情
     * @param id
     * @return
     */
    PhotoAlbumsVO getAlbumById(@Param("id") Integer id);

}

